package com.getpebble.android.common.model;

public enum ConnectionGoal {
    DISCONNECT(0),
    CONNECT(1),
    UNKNOWN(100);
    
    private final int mGoal;

    private ConnectionGoal(int goal) {
        this.mGoal = goal;
    }

    public int getIntValue() {
        return this.mGoal;
    }

    public static ConnectionGoal fromInt(int i) {
        for (ConnectionGoal g : values()) {
            if (g.getIntValue() == i) {
                return g;
            }
        }
        return UNKNOWN;
    }
}
